import request from '@/utils/request';
import log from "@/views/monitor/job/log";

export function listProduct(query) {
  return request({
    url: '/system/product/list',
    method: 'get',
    params: query
  })
}

export function getProduct(productId) {
  return request({
    url: '/system/product/' + productId,
    method: 'get'
  })
}

export function delProduct(productId) {
  return request({
    url: '/system/product/' + productId,
    method: 'delete'
  })
}

export function addProduct(data) {
  return request({
    url: '/system/product',
    method: 'post',
    data: data
  })
}

export function updateProduct(data) {
  return request({
    url: '/system/product',
    method: 'put',
    data: data
  })
}
